package com.lyb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.oas.annotations.EnableOpenApi;

//@SpringBootApplication(exclude = {SecurityAutoConfiguration.class })
@EnableTransactionManagement
@SpringBootApplication()
@EnableGlobalMethodSecurity(prePostEnabled = true)
@EnableOpenApi

//@ComponentScan(basePackages = {"com.lyb.controller","com.lyb.services","com.lyb.pojo","com.lyb.services.impl"})
public class SpringBootApplicationStart {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootApplicationStart.class, args);
    }

}